from pymongo import MongoClient

client = MongoClient()

db = client.database_test

col1 = db.student

result = col1.find({'age':23})
print(result)

for doc in result:
    print(doc)